import styled from 'styled-components'

export const PlayerWrapper = styled.div`
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background-position: 0 0;
  background-repeat: repeat;
  .content {
    height: 49px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 5px;
  }
`

export const PlayControl = styled.div`
  display: flex;
  align-items: center;
  .prev, .next {
    width: 25px;
    height: 25px;
    cursor: pointer;
  }

  .prev {
    background-position: -2px -131px;
  }

  .play {
    background-position: -2px -205px;
    width: 32px;
    height: 33px;
    margin: 0 10px;
    cursor: pointer;
  }

  .next {
    background-position: -82px -131px;
  }
`

export const PlayInfo = styled.div`
  display: flex;
  width: 642px;
  align-items: center;
  .image {
    width: 34px;
    height: 34px;
    overflow: hidden;
    img {
      width: 100%;
      height: 100%;
    }
  }
  .info {
    flex: 1;
    color: #a1a1a1;
    margin-left: 10px;
    font-size: 14px;
    .song {
      color: #e1e1e1;
      position: relative;
      top: 8px;
      font-size: 12px;
    }
    .progress {
      display: flex;
      align-items: center;
      .ant-slider {
        width: 493px;
        .ant-slider-rail {
          background: url(${require("@/assets/img/progress_bar.png").default}) 0 0!important;
        }
        .ant-slider-track {
          background: url(${require("@/assets/img/progress_bar.png").default}) 0 -66px;
        }
        .ant-slider-handle {
          width: 22px;
          height: 24px;
          border: none;
          margin-top: -9px;
          background: url(${require("@/assets/img/sprite_icon.png").default}) 0 -250px;
        }
      }
      .time {
        margin-left: 5px;
        font-size: 12px;
        .now-time {
          color: $e1e1e1;
        }
        .divider {
          margin: 0 3px;
        }
        .total-time {
          color: #999;
        }
      }
    }
  }
`

export const PlayOperator = styled.div`
  display: flex;
  justify-content: space-between;
  align-items: center;

  .left {
    .btn {
      position: relative;
      cursor: pointer;
      top: 6px;
      width: 20px;
      height: 20px;
    }
  
    .collect {
      background-position: -92px -166px;
    }
  
    .share {
      margin-left: 8px;
      background-position: -118px -167px;
    }
  }

  .right {
    display: flex;
    align-items: center;
    width: 126px;
    padding-left: 13px;
    
    .btn {
      position: relative;
      cursor: pointer;
      top: 3px;
      width: 20px;
      height: 20px;
    }

    .sound {
      background-position: -5px -250px;;
    }

    .loop {
      margin: 0 6px;
      background-position: -6px -346px;
    }

    .playlist {
      padding-left: 5px;
      text-align: center;
      color: #ccc;
      width: 59px;
      height: 28px;
      background-position: -42px -98px;
    }
`